package xs.szw.service.model.pojo.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户通知公告表
 * @TableName sys_user_notice
 */
@TableName(value ="sys_user_notice")
@Data
public class UserNotice implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公共通知id
     */
    @TableField(value = "notice_id")
    private Long noticeId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 读取状态（0: 未读, 1: 已读）
     */
    @TableField(value = "is_read")
    private Long isRead;

    /**
     * 阅读时间
     */
    @TableField(value = "read_time")
    private Date readTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除(0: 未删除, 1: 已删除)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}